home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / fontutil.6 / fontutil / fontutils-0.6 / include / c-std.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-22  |  1.9 KB  |  65 lines

  1. /* c-std.h: the first header files.
  2.  
  3. Copyright (C) 1992 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #ifndef C_STD_H
  20. #define C_STD_H
  21.  
  22. /* Header files that essentially all of our sources need, and
  23.    that all implementations have.  We include these first, to help with
  24.    NULL being defined multiple times.  */
  25. #include <math.h>
  26. #include <stdio.h>
  27.  
  28. /* POSIX.1 says that <unistd.h> may require <sys/types.h>.  */
  29. #include <sys/types.h>
  30.  
  31. /* This is the symbol that X uses to determine if <sys/types.h> has been
  32.    read, so we define it.  */
  33. #define __TYPES__
  34.  
  35. /* X uses this symbol to say whether we have <stddef.h> etc.  */
  36. #ifndef STDC_HEADERS
  37. #define X_NOT_STDC_ENV
  38. #endif
  39.  
  40. #if HAVE_UNISTD_H
  41. #include <unistd.h>
  42. #endif
  43.  
  44. /* Include <stdlib.h> first to help avoid NULL redefinitions.  */
  45. #if STDC_HEADERS
  46. #include <stdlib.h>
  47. #include <stddef.h>
  48. #else
  49. extern char *getenv ();
  50. #ifndef ALLOC_RETURN_TYPE
  51. #ifdef DOS
  52. #define ALLOC_RETURN_TYPE void
  53. #else
  54. #define ALLOC_RETURN_TYPE char
  55. #endif /* not DOS */
  56. #endif /* not ALLOC_RETURN_TYPE */
  57. extern ALLOC_RETURN_TYPE *calloc (), *malloc (), *realloc ();
  58. #endif /* not STDC_HEADERS */
  59.  
  60. /* popen is part of POSIX.2, not POSIX.1.  So STDC_HEADERS isn't enough.  */
  61. extern FILE *popen ();
  62. extern double hypot ();
  63.  
  64. #endif /* not C_STD_H */
  65.